/**
* @file      main.c
* @author    Supachai Vorapojpisut
* @version   1.0
* @date      October 26, 2014
* @brief     Main program.
*/

/* Includes -----------------------------------------------------------------------*/
#include <stdio.h>
#include "led.h"

/* Private types ------------------------------------------------------------------*/
/* Private constants --------------------------------------------------------------*/
/* Private macro ------------------------------------------------------------------*/
/* Private variables --------------------------------------------------------------*/
/* Private function prototypes ----------------------------------------------------*/
/* Private functions --------------------------------------------------------------*/


/**
* @brief    Put char using ITM
*/
int fputc(int ch, FILE *f) {
    ITM_SendChar(ch);
    return ch;
}


/**
* @brief    Delay function using SysTick
*/
void delay(uint32_t dly_tick) 
{
}


/** 
* @brief    Main program - loop blink LED
*/
int main()
{
    // Configure LED, USART and SysTick
    LED_config();
    
    // Main loop
    while(1) {
        
        delay(1000); // delay 1 second
    }
}
